From ffbfafb1892f92d818992d982bde28f9367a0fb8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 26 May 2021 14:20:39 -0400 Subject: [PATCH] textbuffer: Add some docs for undo Mention what is undoable and what isn't. --- gtk/gtktextbuffer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c index d54f72e338..473e3e3deb 100644 --- a/gtk/gtktextbuffer.c +++ b/gtk/gtktextbuffer.c @@ -49,6 +49,9 @@ * [text widget conceptual overview](section-text-widget.html), * which gives an overview of all the objects and data types * related to the text widget and how they work together. + * + * GtkTextBuffer can support undoing changes to the buffer + * content, see [method@Gtk.TextBuffer.set_enable_undo]. */ typedef struct _GtkTextLogAttrCache GtkTextLogAttrCache; @@ -4983,6 +4986,9 @@ gtk_text_buffer_get_enable_undo (GtkTextBuffer *buffer) * * Sets whether or not to enable undoable actions in the text buffer. * + * Undoable actions in this context are changes to the text content of + * the buffer. Changes to tags and marks are not tracked. + * * If enabled, the user will be able to undo the last number of actions * up to [method@Gtk.TextBuffer.get_max_undo_levels]. * -- 2.30.2